@import "theme.scss";

.banner-wrap {
  padding: 12px 3.2vw;
  .banner {
    width: 100%;
  }
  .icon-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    .icon-list {
      text-align: center;
      .icon {
        width: 52px;
      }
      .icon-text {
        font-size: 12px;
        text-align: center;
        color: #666;
      }
    }
  }
}

.index-form-wrap {
  padding: 2px 3.2vw 8px;
  .index-form {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px 2.6vw;
    .index-form-title {
      font-size: 20px;
      font-weight: 600;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #333;
      &::after,
      &::before {
        content: "";
        display: block;
        width: 60px;
        height: 1px;
        margin: 0 6px;
      }
      &::after {
        background: linear-gradient(
          to left,
          rgba(204, 204, 204, 0.1) 0%,
          rgba(204, 204, 204, 1) 100%
        );
      }
      &::before {
        background: linear-gradient(
          to right,
          rgba(204, 204, 204, 0.1) 0%,
          rgba(204, 204, 204, 1) 100%
        );
      }
    }
    .form-btn-select {
      margin-top: 16px;
      display: flex;
      justify-content: center;
      align-items: center;
      .index-select {
        height: 50px;
        border: 1px solid #eee !important;
        border-radius: 6px;
        font-size: 14px;
        position: relative;
        &.left {
          width: 60%;
          margin-right: 5%;
        }
        &.right {
          width: 50%;
        }
      }
    }
    .phone {
      height: 50px;
      border: 1px solid #eee !important;
      border-radius: 6px;
      font-size: 14px;
    }
    .index-submit {
      width: 50%;
      height: 46px;
      background: $_theme;
      border-color: $_theme;
      font-size: 16px;
      border-radius: 6px;
    }
  }
}

.index-table-view {
  margin-top: 10px;
  &::before,
  &::after {
    height: 0;
  }
  .index-table-view-cell {
    &::after {
      height: 0;
    }
  }
}
.jx-table-view {
  margin-top: 0;
}
.index-more-right {
  font-size: 14px;
  &::after {
    content: "更多\E583";
    font-size: 12px;
  }
}
.index-hot-grid-wrap,
.index-jx-grid-wrap {
  padding: 10px 3.2vw 15px;
  background-color: #f5f5f5;
  display: flex;
  flex-wrap: wrap;
  &::after {
    height: 0;
  }
  .index-grid-list {
    margin-right: 1.2vw;
    margin-top: 5px;
    width: 30.4vw;
    height: 114px;
    &:nth-child(3n) {
      margin-right: 0;
    }
    a {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%;
      background-color: #fff;
      .img-box {
        width: 16vw;
        height: 55px;
        display: flex;
        justify-content: center;
        align-items: center;
        .index-list-img {
          max-width: 100%;
          max-height: 100%;
        }
      }
      .index-list-text {
        font-size: 12px;
        margin-top: 10px;
        margin-bottom: 0;
      }
    }
  }
}

.index-jx-grid-wrap {
  padding: 1px 3.2vw 20px;
  background-color: #fff;
  .index-grid-list {
    margin-right: 2.6vw;
    margin-top: 15px;
    width: 45.5vw;
    height: auto;
    &:nth-child(3n) {
      margin-right: 2.6vw;
    }
    &:nth-child(2n) {
      margin-right: 0;
    }
    a {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%;
      background-color: #fff;
      .img-box {
        width: 100%;
        height: 140px;
        display: flex;
        justify-content: center;
        align-items: center;
        .index-list-img {
          max-width: 100%;
          max-height: 100%;
        }
      }
      .index-list-text-wrap {
        margin-top: 8px;
        width: 100%;
        p {
          margin-bottom: 0;
        }
        .name-fenlei {
          display: flex;
          justify-content: space-between;
          align-items: center;
          .name {
            color: #333;
            font-size: 13px;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
          }
          .fenlei {
            color: #ccc;
            font-size: 11px;
            min-width: 60px;
            text-align: right;
          }
        }
        .price {
          color: $_theme;
          font-size: 13px;
          font-weight: 600;
        }
      }
    }
  }
}

.index-slider {
  background-color: white;
  min-height: 342px;
  height: auto;
  .mui-control-item {
    font-size: 14px;
    &.mui-active {
      color: $_theme;
      font-weight: 600;
    }
  }
  .mui-slider-progress-bar {
    background-color: $_theme !important;
  }
  .mui-table-view-cell a {
    font-size: 13px;
  }
  .mui-table-view-cell::after {
    left: 0;
  }
  .mui-slider-item {
    border-bottom: none !important;
  }
}
.index-slider-wrapper {
  padding: 0 3.2vw;
}

.contcat-wrap {
  width: 100%;
  height: 44px;
  background-color: $_theme;
  margin-top: 15px;
  .text {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    color: #fff;
    width: 100%;
    height: 100%;
    &::before {
      content: "";
      display: block;
      width: 18px;
      height: 18px;
      background: url(../images/contcat_phone.png);
      background-size: 100% 100%;
      margin-right: 10px;
    }
    a {
      margin-right: 15px;
      color: #fff;
    }
  }
}

.copyright {
  font-size: 12px;
  color: #999;
  padding: 15px;
  text-align: center;
}

.index-container {
  padding-bottom: 15px;
}

// 2020.08.26 修改
.button-input {
  margin-top: 20px;
  .input-warp {
    position: relative;
    .search {
      background: #f1f1f1;
      width: 100%;
      font-size: 13px;
    }
    .fangda {
      border: 0px solid #fff;
      width: 50px;
      background: url(../images/top_search_icon_theme.png) no-repeat right 13px
        top 7px;
      background-size: 20px;
      position: absolute;
      right: 0;
    }
    .fangda:active {
      background-color: #fff;
      border: 0px solid #fff;
    }
  }
  .mui-btn {
    font-size: 13px;
    width: 37vw;
    min-width: 150px;
    background: #f1f1f1;
    border: 1px solid #eee;
    color: #666;
    position: relative;
    text-align: right;
    .search-choose-result {
      position: relative;
      &::before {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-width: 5px;
        border-style: solid;
        border-color: #666 transparent transparent transparent;
        position: absolute;
        top: 4px;
        left: -16px;
      }
    }
    .mui-icon {
      display: none;
    }
  }
}
.search-all {
  width: 100%;
  height: 450px;
  max-height: 70vh;
  left: 0 !important;
  top: auto !important;
  bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 70px 0;
  &::after,
  &::before {
    content: "";
    display: block;
    width: 100%;
    height: 70px;
    position: absolute;
    left: 0;
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 20%,
      rgba(255, 255, 255, 0) 100%
    );
    z-index: 3;
  }
  &::before {
    top: 0;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 20%,
      rgba(255, 255, 255, 0) 100%
    );
    border-radius: 10px 10px 0 0;
  }
  &::after {
    bottom: 0;
  }

  .mui-popover-arrow {
    display: none;
  }
  .mui-table-view {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 70px 0;
    .mui-table-view-cell {
      width: 33.33%;
      height: auto;
      font-size: 14px;
      background: none;
      line-height: auto;
      margin-bottom: 20px;
      margin-top: 0;
      margin-right: 0;
    }
    .hot {
      color: #fa6400;
    }
  }
}
.banner-wrap {
  padding-top: 24px;
  .icon-wrap {
    justify-content: space-around;
    .icon-list {
      .icon-text {
        font-size: 13px;
      }
    }
  }
}

.index-form-wrap {
  padding-bottom: 24px;
  .index-form {
    .index-form-title {
      font-weight: normal;
      &::before,
      &::after {
        margin: 0 10px;
      }
    }
    .form-btn-select {
      position: relative;
      display: block;
      margin-top: 24px;
      .index-select.left {
        width: 100%;
        margin-right: 0;
        text-align: center;
        text-align-last: center;
        font-size: 13px;
      }
      &::after {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-width: 8px;
        border-style: solid;
        border-color: #999 transparent transparent transparent;
        position: absolute;
        top: 22px;
        right: 22px;
      }
    }
    .phone {
      text-align: center;
    }
  }
}
.index-container {
  background: linear-gradient(to top, #fff 0, #fff 100px, #f5f5f5 100px, #f5f5f5 100%);
  // padding-bottom: 100px;
}
.input-container, .banner-wrap, .index-form-wrap, .index-hot-wrap, .index-slider-wrapper, .copyright {
  background: #fff;
}

.index-hot-wrap {
  margin-top: 15px;
  .index-hot-grid-wrap {
    background: #fff;
  }
}
.index-more-right::after {
  font-size: 13px;
}
.index-jx-wrap, .index-slider-wrapper {
  margin-top: 15px;
}
